﻿using System;
using System.Collections;
using System.Collections.Generic;
using MotionFramework.Event;

public abstract class DataBase
{
    protected readonly EventGroup _eventGroup = new EventGroup();

    public abstract void OnAwake();
    public abstract void OnStart();
    public abstract void OnUpdate();
    public abstract void OnDestroy();

    /// <summary>
    /// 读取数据模块的存档
    /// </summary>
    public virtual void ReadArchive()
    {
    }

    /// <summary>
    /// 清空缓存事件
    /// </summary>
    public void ClearEventGroup()
    {
        _eventGroup.RemoveAllListener();
    }
}